package Schiffeversenken;

/**
 * Represents a position in a 2-dimensional world
 */
public class Position
{
    // members
    private int _x;
    private int _y;


    // constructors

    /**
     * Defines a Zero-Filled Position.
     */
    public Position()
    {
        _x = 0;
        _y = 0;
    }
    /**
     * Defines a Position by parameter given values.
     * @param   <int>   x-coordinate
     * @param   <int>   y-coordinate
     */
    public Position(int x, int y)
    {
        _x = x;
        _y = y;
    }


    // properties
    
    /**
     * @return  <int>   X-Coordinate
     */
    public int X()
    {
        return _x;
    }
    /**
     * @return  <int>   Y-Coordinate
     */
    public int Y()
    {
        return _y;
    }
}
